]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-clipboard: Remove get/set_property functions.
authorAndrea Azzarone <andrea.azzarone@canonical.com>
Fri, 22 Feb 2019 13:36:27 +0000 (14:36 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 26 Feb 2019 00:23:36 +0000 (00:23 +0000)
Remove st_clipboard_get_property and st_clipboard_set_property because they are
identical to the default implementation.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/414

src/st/st-clipboard.c

index d5b1395e480f854d13872ba3a7b8e761ac7d603d..2c86f9a22222e5c8b08bee0b22570bcd5d394514 100644 (file)
@@ -58,32 +58,6 @@ static Atom __atom_clip = None;
 static Atom __utf8_string = None;
 static Atom __atom_targets = None;
 
-static void
-st_clipboard_get_property (GObject    *object,
-                           guint       property_id,
-                           GValue     *value,
-                           GParamSpec *pspec)
-{
-  switch (property_id)
-    {
-    default:
-      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-    }
-}
-
-static void
-st_clipboard_set_property (GObject      *object,
-                           guint         property_id,
-                           const GValue *value,
-                           GParamSpec   *pspec)
-{
-  switch (property_id)
-    {
-    default:
-      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-    }
-}
-
 static void
 st_clipboard_dispose (GObject *object)
 {
@@ -180,8 +154,6 @@ st_clipboard_class_init (StClipboardClass *klass)
 {
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
 
-  object_class->get_property = st_clipboard_get_property;
-  object_class->set_property = st_clipboard_set_property;
   object_class->dispose = st_clipboard_dispose;
   object_class->finalize = st_clipboard_finalize;
 }